const Net = require('../../common.js')
Page({
  data: {
    userlist:[]
  },
  onLoad: function (options) {
    var _this = this
    _this.onPageInfo()
  },
  onPageInfo() {
    Net.link('v1/fansList', {
      now_page:1
    }, function (res) {
      for (let i in res.data.data.list) {
        res.data.data.list[i].create_time = Net.formatTime(res.data.data.list[i].create_time, 'Y-M-D h:m:s')
      }
      Net.data({
        userlist: res.data.data.list
      })
    }, 'GET')
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
  onShareAppMessage: function () {}
})